package com.phiture.erp.basic.core.pojo.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 物料采购属性 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialPurchasingRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4729")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "采购资料状态(0:未核准 1:核准 2:禁用 3:已删除)", example = "2")
    private Integer status;
    @Schema(description = "采购资料状态(0:未核准 1:核准 2:禁用 3:已删除)", example = "2")
    @ExcelProperty("采购资料状态(0:未核准 1:核准 2:禁用 3:已删除)")
    private String statusDesc;

    @Schema(description = "物料", example = "6428")
    @ExcelProperty("物料")
    private Long materialId;

    @Schema(description = "采购员", example = "26161")
    @ExcelProperty("采购员")
    private Long purPersonId;

    @Schema(description = "供应商", example = "5268")
    @ExcelProperty("供应商")
    private Long supplierId;

    @Schema(description = "产地")
    @ExcelProperty("产地")
    private String producingArea;

    @Schema(description = "生产厂家")
    @ExcelProperty("生产厂家")
    private String produceFactory;

    @Schema(description = "参考单价", example = "268")
    @ExcelProperty("参考单价")
    private BigDecimal price;

    @Schema(description = "最高限价")
    @ExcelProperty("最高限价")
    private BigDecimal priceTop;

    @Schema(description = "收货可提前天数")
    @ExcelProperty("收货可提前天数")
    private Integer daydAhead;

    @Schema(description = "指定采购组织", example = "26690")
    @ExcelProperty("指定采购组织")
    private Long appointPurOrgId;

    @Schema(description = "采购检验(0:不检验 1:抽检 2:全检)")
    private Integer purchaseCheckType;

    @Schema(description = "采购检验(0:不检验 1:抽检 2:全检)")
    @ExcelProperty("采购检验(0:不检验 1:抽检 2:全检)")
    private String purchaseCheckTypeDesc;

    @Schema(description = "采购组")
    @ExcelProperty("采购组")
    private String purGroup;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}